﻿/***********************************************************************
 * <copyright file="NewsCategoryDescription.cs" company="VidaGIS">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@vidagis.com or bichson2002@gmail.com
 * Website:
 * Create Date: Tuesday, November 25, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System;
using BusinessObjects;
using BusinessObjects.BusinessRules;

namespace BusinessNews
{
    /// <summary>
    /// NewsCategoryDescription class
    /// </summary>
    public class NewsCategoryDescription:BusinessObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="NewsCategoryDescription"/> class.
        /// </summary>
        public NewsCategoryDescription()
        {
            AddRule(new ValidateId("NewsCategoyId"));
            AddRule(new ValidateId("LanguageId"));
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="NewsCategoryDescription"/> class.
        /// </summary>
        /// <param name="newsCategoyId">The news categoy identifier.</param>
        /// <param name="languageId">The language identifier.</param>
        /// <param name="title">The title.</param>
        /// <param name="description">The description.</param>
        /// <param name="modifiedDate">The modified date.</param>
        public NewsCategoryDescription(long newsCategoyId, short languageId, string title, string description, DateTime? modifiedDate)
            : this()
        {

            NewsCategoyId = newsCategoyId;
            LanguageId = languageId;
            Title = title;
            Description = description;
            ModifiedDate = modifiedDate;
        }

        /// <summary>
        /// Gets or sets the news category.
        /// </summary>
        /// <value>
        /// The news category.
        /// </value>
        public NewsCategory NewsCategory { get; set; }

        /// <summary>
        /// Gets or sets the news categoy identifier.
        /// </summary>
        /// <value>
        /// The news categoy identifier.
        /// </value>
        public long NewsCategoyId { get; set; }

        /// <summary>
        /// Gets or sets the language identifier.
        /// </summary>
        /// <value>
        /// The language identifier.
        /// </value>
        public short LanguageId { get; set; }

        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>
        /// The title.
        /// </value>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the description.
        /// </summary>
        /// <value>
        /// The description.
        /// </value>
        public string Description { get; set; }

        /// <summary>
        /// Gets or sets the modified date.
        /// </summary>
        /// <value>
        /// The modified date.
        /// </value>
        public DateTime? ModifiedDate { get; set; }
    }
}
